/**
 * Constructor
 */
function PGSecKey() {
}


PGSecKey.prototype.getBase64EncodePrivateKey = function(types, success, fail) {
	PhoneGap.exec(success, fail, "com.phonegap.seckey", "getBase64EncodePrivateKey", types);
}

PGSecKey.prototype.getBase64EncodePublicKey = function(types, success, fail) {
	PhoneGap.exec(success, fail, "com.phonegap.seckey", "getBase64EncodePublicKey", types);
}

PGSecKey.prototype.deleteKeys = function(types, success, fail) {
    PhoneGap.exec(success, fail, "com.phonegap.seckey", "deleteKeys", types);
}

PGSecKey.prototype.generateKeys = function(types, success, fail) {
	PhoneGap.exec(success, fail, "com.phonegap.seckey", "generateKeys", types);
}

/**
 * Install function
 */
PGSecKey.install = function() {
	if ( !window.plugins ) 
		window.plugins = {}; 
	if ( !window.plugins.PGSecKey ) 
		window.plugins.PGSecKey = new PGSecKey();
}

/**
 * Add to PhoneGap constructor
 */
PhoneGap.addConstructor(PGSecKey.install);